package com.jixing.rengran.huaji.mvp.model.biz;

import com.jixing.rengran.huaji.mvp.model.bean.HttpData;
import com.jixing.rengran.huaji.mvp.model.bean.UserBean;
import com.jixing.rengran.huaji.mvp.model.service.StaticService;
import com.jixing.rengran.huaji.retrofit.helper.RetrofitHelper;

import io.reactivex.Flowable;

/**
 * Created by l5544 on 2017/11/7.
 */

public class AppModel {
    public Flowable<HttpData<UserBean>> Login(String username,String password) {
        StaticService service = RetrofitHelper.getInstance().getRetrofit().create(StaticService.class);
        return  service.login(username,password);
    }
}
